package com.itsense.stock.mapper;

import com.itsense.stock.pojo.domain.OuterMarketDomain;
import com.itsense.stock.pojo.entity.StockOuterMarketIndexInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author sense
* @description 针对表【stock_outer_market_index_info(外盘详情信息表)】的数据库操作Mapper
* @createDate 2024-12-30 20:59:30
* @Entity com.itsense.stock.pojo.entity.StockOuterMarketIndexInfo
*/
public interface StockOuterMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockOuterMarketIndexInfo record);

    int insertSelective(StockOuterMarketIndexInfo record);

    StockOuterMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockOuterMarketIndexInfo record);

    int updateByPrimaryKey(StockOuterMarketIndexInfo record);

    /**
     * 返回外股大盘的最新数据
     * @param curDate
     * @return
     */
    List<OuterMarketDomain> getMarketInfo(@Param("curDate") Date curDate);

    /**
     * 执行查找联网的数据实现返回对应的外股大盘信息
     * @param list
     * @return
     */
    int insertBatch(@Param("list") List<StockOuterMarketIndexInfo> list);
}
